package com.wwwarehouse.usercenter.bean.authoritydistribute;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.ArrayList;
import java.util.List;

/**
 * 权限分配->错误详情
 * Created by ShineF on 2017/9/26 0026.
 */

public class QuaryDistributePermissionErrorInfo implements Parcelable {

    private int total;
    private int size;
    private int page;
    private List<ListBean> list;

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }

    public int getPage() {
        return page;
    }

    public void setPage(int page) {
        this.page = page;
    }

    public List<ListBean> getList() {
        return list;
    }

    public void setList(List<ListBean> list) {
        this.list = list;
    }

    public static class ListBean implements Parcelable {

        private String userName;
        private int userId;
        private List<FailDetailDTOSBean> failDetailDTOS;

        public String getUserName() {
            return userName;
        }

        public void setUserName(String userName) {
            this.userName = userName;
        }


        public int getUserId() {
            return userId;
        }

        public void setUserId(int userId) {
            this.userId = userId;
        }

        public List<FailDetailDTOSBean> getFailDetailDTOS() {
            return failDetailDTOS;
        }

        public void setFailDetailDTOS(List<FailDetailDTOSBean> failDetailDTOS) {
            this.failDetailDTOS = failDetailDTOS;
        }

        public static class FailDetailDTOSBean implements Parcelable {
            /**
             * authStart : null
             * detailMsg : 重复授权
             * authEnd : null
             * authName : 标签1->集货分拣
             * class : com.wwwarehouse.xdw.usercenter.model.acthority.AuAuthorityFailDetailDTO
             */

            private String detailMsg;
            private String authName;


            public String getDetailMsg() {
                return detailMsg;
            }

            public void setDetailMsg(String detailMsg) {
                this.detailMsg = detailMsg;
            }


            public String getAuthName() {
                return authName;
            }

            public void setAuthName(String authName) {
                this.authName = authName;
            }

            @Override
            public int describeContents() {
                return 0;
            }

            @Override
            public void writeToParcel(Parcel dest, int flags) {
                dest.writeString(this.detailMsg);
                dest.writeString(this.authName);
            }

            public FailDetailDTOSBean() {
            }

            protected FailDetailDTOSBean(Parcel in) {
                this.detailMsg = in.readString();
                this.authName = in.readString();
            }

            public static final Creator<FailDetailDTOSBean> CREATOR = new Creator<FailDetailDTOSBean>() {
                @Override
                public FailDetailDTOSBean createFromParcel(Parcel source) {
                    return new FailDetailDTOSBean(source);
                }

                @Override
                public FailDetailDTOSBean[] newArray(int size) {
                    return new FailDetailDTOSBean[size];
                }
            };
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeString(this.userName);
            dest.writeInt(this.userId);
            dest.writeList(this.failDetailDTOS);
        }

        public ListBean() {
        }

        protected ListBean(Parcel in) {
            this.userName = in.readString();
            this.userId = in.readInt();
            this.failDetailDTOS = new ArrayList<FailDetailDTOSBean>();
            in.readList(this.failDetailDTOS, FailDetailDTOSBean.class.getClassLoader());
        }

        public static final Creator<ListBean> CREATOR = new Creator<ListBean>() {
            @Override
            public ListBean createFromParcel(Parcel source) {
                return new ListBean(source);
            }

            @Override
            public ListBean[] newArray(int size) {
                return new ListBean[size];
            }
        };
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.total);
        dest.writeInt(this.size);
        dest.writeInt(this.page);
        dest.writeList(this.list);
    }

    public QuaryDistributePermissionErrorInfo() {
    }

    protected QuaryDistributePermissionErrorInfo(Parcel in) {
        this.total = in.readInt();
        this.size = in.readInt();
        this.page = in.readInt();
        this.list = new ArrayList<ListBean>();
        in.readList(this.list, ListBean.class.getClassLoader());
    }

    public static final Parcelable.Creator<QuaryDistributePermissionErrorInfo> CREATOR = new Parcelable.Creator<QuaryDistributePermissionErrorInfo>() {
        @Override
        public QuaryDistributePermissionErrorInfo createFromParcel(Parcel source) {
            return new QuaryDistributePermissionErrorInfo(source);
        }

        @Override
        public QuaryDistributePermissionErrorInfo[] newArray(int size) {
            return new QuaryDistributePermissionErrorInfo[size];
        }
    };
}
